package com.friend.chat.webrtc;

import android.view.View;

import java.util.List;

/**
 * @author batie fancy
 * @des
 * @date 2023/4/6
 */
public interface IEngine {
    /**
     * 初始化
     */
    void init();

    /**
     * 加入房间
     */
    void joinRoom(List<String> userIds);

    /**
     * 有人进入房间
     */
    void personIn(String ownId,String toUid);

    /**
     * receive offer
     */
    void receiveOffer(String ownId,String description);

    void receiveAnswer(String ownId,String description);

    /**
     * receive IceCandidate
     */
    void receiveIceCandidate(String ownId, String sdpMid, int sdpMLineIndex, String sdp);

    /**
     * 开启本地预览
     */
    View setupLocalPreview(boolean isOverlay);


}
